package com.wlf.aiinterview.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wlf.aiinterview.model.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【user(用户)】的数据库操作Service
 * @createDate 2025-11-11 16:22:23
 */
public interface UserService extends IService<User> {
    //添加用户 注册
    Integer addUser(String account, String passWord, String checkPassWord);

    //注销
    Boolean userLogout(HttpServletRequest request);

    User getLoginUser(HttpServletRequest request);

    //查询用户 登录
    List<User> userLogin(String account, String password, HttpServletRequest request);

    //根据id查找用户
    User getUserById(Long id);
    //分页查询
    Page<User> listBypageQuery(int current ,int pagesize,String sortField);
}
